package com.itheima.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * AOP 通知顺序
 */
@Slf4j
@Component
//@Aspect //切面类
@Order(1) //控制切面顺序
public class AspectDemo3 {

    @Before("execution(* com.itheima.service.*.*(..))")
    public void before() {
        log.info("前置通知3333333333...");
    }
}
